package com.pray;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients  //自动装配的开关，Aware
@EnableAsync//测试异步任务
public class CloudApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(CloudApplication.class, args);
        String property = context.getEnvironment().getProperty("server.port");
    }
}
